
#pragma once

#include "../common/html_view_base.h"

//////////////////////////////////////////////////////////////////////////
// T where CHtmlViewBase
template<class T>
class CHtmlWindow : public CDialog
{
public:
	CHtmlWindow()
	{

	}

	~CHtmlWindow()
	{

	}


	BOOL Create(CRect const& rc1, CRect const& rc2)
	{
		BOOL bCreated = __super::Create(IDD_DIALOG_TMPL);
		if (bCreated)
		{
			RECT r;
			GetClientRect(&r);

			T* p = new T();
			m_pHtmlView = (CHtmlViewBase*)p;
			m_pHtmlView->Create(r, this, 1001);

			ShowWindow(SW_NORMAL);
		}
		return TRUE;
	}
private:
	CHtmlViewBase* m_pHtmlView;

private:
};